package org.moda.functional.fp;

import java.util.function.Function;

public interface Functor<A> {
    public <B> Functor<B> map(Function<A, B> f);

    @SuppressWarnings("unchecked")
    default <A_ extends Functor<A>> A_ convert() {
        return (A_)this;
    }
}
